import React from "react";
export default class NavBar extends React.Component{
    render(){
        return(
            <div style={{background:'yellow',textAlign:'center',overflow:'hidden',padding:'4px'}}>
                <button style={{float:'left'}}>返回</button>
                <span>卖座电影</span>
                <button onClick={()=>{this.props.event()}} style={{float:'right'}}>我的</button>
            </div>
        )
    }
}